package com.xyd.bean;

import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Getter
@Setter
/*@NoArgsConstructor
@AllArgsConstructor*/
@Component
public class Printer {
   /* @Autowired
    @Qualifier(value = "grayInk")*/
    @Resource(name = "colorInk")
    private Ink ink;
    /*@Autowired
    @Qualifier(value = "a4Paper")*/
    @Resource(name ="a4Paper")
    private Paper paper;
    public void printerInfo(){
        System.out.println("打印机工作..");
        ink.printInkInfo();
        paper.printPaperInfo();
    }
}
